import Vue from 'vue'
import Router from 'vue-router'
import pc from './pc/pc-router'
import mobile from './mobile/mobile-router'

Vue.use(Router)
export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'welcome',
            component: resolve => require.ensure([], () => resolve(require('@/views/Welcome')), 'welcome')
        },
        ...pc,
        ...mobile
    ]
})
